package com.hl.service;

import com.hl.mapper.FeeStandardsMapper;
import com.hl.pojo.FeeStandards;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
public class FeeStandardsServiceImpl implements FeeStandardsService {
    @Autowired
    private FeeStandardsMapper feeStandardsMapper;
    @Override
    public Integer add(FeeStandards feeStandards) {
        return feeStandardsMapper.add(feeStandards);
    }

    @Override
    public Integer update(FeeStandards feeStandards) {
        return feeStandardsMapper.update(feeStandards);
    }

    @Override
    public Integer delete(String id) {
        return feeStandardsMapper.del(id);
    }

    @Override
    public FeeStandards findById(String id) {
        return feeStandardsMapper.findById(id);
    }

    @Override
    public List<FeeStandards> findByConsultationMethods(String consultationMethods) {
        return feeStandardsMapper.findByConsultationMethods(consultationMethods);
    }

    @Override
    public List<FeeStandards> findByConsultantId(Integer consultantId) {
        return feeStandardsMapper.findByConsultantId(consultantId);
    }

    @Override
    public List<FeeStandards> findAll() {
        return feeStandardsMapper.findAll();
    }
}
